/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package messgui.classes;

import javax.swing.DefaultListModel;
import messengerclient.observers.ObsGUI;

import messengercommon.dto.Message;
import messengercommon.person.Contact;

/**
 *
 * @author Samus
 */
public class ChatList extends DefaultListModel implements ObsGUI {

    public ChatList() {
        super();
    }

    public void receiveMessage(Message message) {
        super.addElement(message.getOrigen() + " dice...");
        super.addElement(message.getMensaje());
    }

    public void statusChange(Contact contact) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}
